package com.itbbfx.service.hospitalization.impl;

import com.itbbfx.entity.Register;
import com.itbbfx.mapper.hospitalization.LleaveMapper;
import com.itbbfx.service.hospitalization.LleaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class LleaveServiceImpl implements LleaveService {
    @Autowired
    private LleaveMapper lleaveMapper;

    @Override
    public int updBstate(Register register) {
        return lleaveMapper.updBstate(register);
    }

    @Override
    public List<Register> selRegisters(Register register) {
        return lleaveMapper.selRegisters(register);
    }

    @Override
    public int selYaos(Register register) {
        return lleaveMapper.selYaos(register);
    }

    @Override
    public int updRstate(Register register) {
        return lleaveMapper.updRstate(register);
    }
}
